package com.qst.rongxiaotong.pojo;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.NotBlank;

import javax.persistence.Table;
import java.util.Date;


@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel(value = "discuss",description = "知识讨论评论")
@Table(name = "tb_discuss")
public class Discuss {

    private Integer discussId;

    private Integer knowledgeId;

    private String ownName;

    @NotBlank(message = "内容不能为空")
    private String content;

    private Date createTime;
}
